package com.mskj.zxmy.controller;

import com.mskj.zxmy.common.Result;
import com.mskj.zxmy.dto.UnfinishedCountDTO;
import com.mskj.zxmy.service.NoNumberService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/statistics")
@Tag(name = "未数量")
public class StatisticsController {

    @Autowired
    private NoNumberService noNumberService;

    @GetMapping("/unfinishedCounts")
    public Result<UnfinishedCountDTO> getUnfinishedCounts() {
        return Result.success(noNumberService.getUnfinishedCounts());
    }
}